<!--
  @author heguanghua
  @since 2019/06/12 19:34
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<table class="layui-hide" id="zmn-table" lay-filter="zmn-table" th:fragment="table">
    <thead>
    <tr>
        <th lay-data="{type:'checkbox', width:50, unresize:true, align:'center', fixed:'left'}"></th>
        <th lay-data="{field:'channelId', width:100, unresize:true, align:'center'}">渠道ID</th>
        <th lay-data="{field:'channelTwoName', unresize:true, align:'left'}">二级渠道名称</th>
        <th lay-data="{field:'channelOneName', unresize:true, align:'left'}">一级渠道名称</th>
        <th lay-data="{field:'channelType', unresize:true, align:'center'}">渠道类型</th>
        <th lay-data="{field:'dept', unresize:true, align:'center'}">所属部门</th>
        <th lay-data="{field:'status', unresize:true, align:'center'}">渠道状态</th>
    </tr>
    </thead>

    <tbody>
    <tr th:each="item:${items}">
        <td></td>
        <td th:text="${item.channelTwoId}" class="">channelId</td>
        <td th:text="${item.channelTwoName}" class="layui-gray">channelTwoName</td>
        <td th:text="${item.channelOneName}" class="layui-gray">channelOneName</td>
        <td th:text="${T(com.zmn.plat.common.dictionary.ChannelTypeEnum).of(item.channelType)==null?'':T(com.zmn.plat.common.dictionary.ChannelTypeEnum).of(item.channelType).getName()}"></td>
        <td th:text="${T(com.zmn.common.utils.string.StringUtil).isBlank(item.oneDeptName) ? '--' : item.oneDeptName + '/' +item.deptName}"></td>
        <td th:text="${item.status == 2 ? '启用' : '停用'}"></td>
    </tr>
    </tbody>
</table>
